<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title>iScroll demo: simple</title>

<link rel="stylesheet"  href="lib/jquery.mobile-1.1.0.css" />
<link rel="stylesheet"  href="lib/lm.css" />


<script type="text/javascript" src="lib/jquery.js"></script>
<script type="text/javascript" src="lib/iscroll.js"></script>
<script type="text/javascript" src="lib/lm.js"></script>
<script type="text/javascript" src="lib/cordova-1.7.0.js"></script>
<script type="text/javascript" src="lib/jquery.tmpl.js"></script>
<script type="text/javascript" src="lib/jquery.mobile-1.1.0.js"></script>
<script type="text/javascript" src="lib/connector.js"></script>
<script type="text/javascript" charset="utf-8" src="lib/childbrowser.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>




<script type="text/javascript">

var myScroll;
var showScroll;
var isLockCall;
var curPage = 0;//0为主页面
				//1为商家列表
				//2为商家详细信息
var isLockCall = false;
var backbtn;
var isSet=false;
var curCommonPage = 0;	//0主界面
						//1详情
var curPhoneList = 0;	//0表示紧急
						//1表示保险
						//2表示4S店数据
var curPackPage = 0		//0主界面
						//1商家详细信息
var curSearchPage = 0;	//0为主页面
						//1为商家列表
						//2为商家详细信息
var curHelpPage = 0;	//0为主页面
						//1为评价
                        //2为反馈
                        //3为关于
var curPhoneBrand = 0;
var phoneListScroll;

var InsurancePhonelistScroll;

var AutoScroll;

var searchListScroll;

var brandPhoneAutoScroller;

var curTabCard = 0;

var isFromHot = false;
var simLat = 120.3290;
var simLon = 32.0987;
var latitude;
var longitude;

function onLocationChange(data){
	latitude = data.Latitude;
	longitude = data.Longitude;
	console.log("onLocationChange:latitude:"+latitude+",longitude:"+longitude);
}

console.log("------------------start----------------");

function loaded()
{
	if(isSet==false)
    {
        $('body').css('background','white');
		curTabCard = 0;
		curPage = 0;
		curCommonPage = 0;
		curPackPage = 0;
		curSearchPage = 0;
		curHelpPage = 0;
		isSet = true;
		myScroll = new iScroll('wrapper');
		showScroll = new iScroll('shopwrapper');
		searchListScroll = new iScroll('searchwrapper');
		searchdetailScroll = new iScroll('searchdetail');
        phoneListScroll = new iScroll('EmergencyPhonelist');
        InsurancePhonelistScroll = new iScroll('InsurancePhonelist');
        AutoScroll = new iScroll('AutoPhonelist');
        brandPhoneAutoScroller = new iScroll('BrandPhonelist');
		backbtn = $('#backbtn');
        sendBtn = $('#sendFeedBk');
        sendBtn.hide();
		jumpToMain();
	}
}

function onResume(){
	console.log("onResume");
	isLockCall = false;
    document.addEventListener("backbutton", onTotalBackKey, false);
}

function changeTab(){
    var nearby = $('#btn_nearby');
    var setting = $('#btn_setting');
    var search = $('#btn_search');
    var common = $('#btn_common');
    console.log("changeTab:curTabCard:"+curTabCard);
    nearby.css('background-image',"url(img/btn_nearby.png)");
	setting.css('background-image',"url(img/btn_setting.png)");
	search.css('background-image',"url(img/btn_search.png)");
	common.css('background-image',"url(img/btn_common.png)");
	switch(curTabCard){
	case 0:
		{
		nearby.css('background-image',"url(img/btn_nearbysele.png)");
		switch(curPage){
		case 0:
			{
            console.log("changeTab:curPage:"+curPage);
			jumpToMain();
			break;
			}
		case 1:
			{
			jumpToShopLists();
			break;
			}
		case 2:
			{
			jumpToShopDetails();
			break;
			}
		}
		break;
		}
	case 1:
		{
		common.css('background-image',"url(img/btn_commonsele.png)");
		switch(curCommonPage){
		case 0:
			{
			commonJumpToMain();
			break;
			}
		case 1:
			{
            commonJumpToPhoneList(curPhoneList);
			break;
			}
        case 2:{
            commonJumpToPhoneBrand(curPhoneBrand);
            break;
        }
		}
		break;
		}
	case 2:
		{
		search.css('background-image',"url(img/btn_searchsele.png)");
		switch(curSearchPage){
		case 0:
			{
			searchJumpToMain();
			break;
			}
		case 1:
			{
			searchJumpToShopList();
			break;
			}
		case 2:
			{
			searchJumpToShopDetail();
			break;
			}
		}
		break;
		}
        case 3:{
    		pack.css('background-image',"url(img/btn_packsele.png)");
            break;
        }
        case 4:{
        	setting.css('background-image',"url(img/btn_settingsele.png)");
            switch(curHelpPage){
                case 0:{
                    helpJumpToMain();
                    break;
                }
                case 1:{
                    helpJumpToBackUp();
                    break;
                }
                case 2:{
                    helpJumpToVal();
                    break;
                }
                case 3:{
                    helpJumpToAbout();
                    break;
                }
            }
            break;
        }
	}
}

function helpJumpToMain(){
    curHelpPage = 0;
    lmtab('lmt9');
    backbtn.hide();
}

function helpJumpToBackUp(){
    curHelpPage = 1;
    lmtab('lmt13');
    backbtn.show();
    sendBtn = $('#sendFeedBk');
    sendBtn.show();
}

function helpJumpToVal(){
    curHelpPage = 2;
    lmtab('lm11');
    backbtn.show();
}

function helpJumpToAbout(){
    curHelpPage = 3;
    lmtab('12');
    backbtn.show();
}


function searchJumpToMain(){
	curSearchPage = 0;
	isFromHot = false;
	lmtab('lmt6');
	console.log('searchJumpToMain:'+curSearchPage);
	backbtn.hide();
}

function searchJumpToShopList(){
	curSearchPage = 1;
	lmtab('lmt7');
	console.log('searchJumpToShopList:'+curSearchPage);
	backbtn.show();
	searchListScroll.refresh();
}

function searchJumpToShopDetail(){
	curSearchPage = 2;
	lmtab('lmt8');
	console.log('searchJumpToShopDetail:'+curSearchPage);
	backbtn.show();
	searchdetailScroll.refresh();
}

function commonJumpToMain(){
	curCommonPage = 0;
	lmtab('lmt4');
	console.log('commonJumpToMain:'+curCommonPage);
	backbtn.hide();
}

function commonJumpToPhoneList(index){
	curCommonPage = 1;
	curPhoneList = index;
    $('body').css('background','white');
	switch(index){
	case 0:{
		lmtab('lmt10');
        phoneListScroll.refresh();
		break;
	}
	case 1:{
		lmtab('lmt11');
        InsurancePhonelistScroll.refresh();
		break;
	}
	case 2:{
		lmtab('lmt12');
        AutoScroll.refresh();
		break;
	}
	}
	console.log('commonJumpToMain:'+curCommonPage);
	backbtn.show();
}

//奥迪
var audi = new Array("浙江奥通汽车有限公司","057185368000","浙江利华汽车销售有限公司","057182601000",
                       "杭州德奥汽车有限公司","057128038888","浙江和诚滨奥汽车有限公司","057186600000",
                       "浙江百得利汽车有限公司","057128073333","浙江奥达通汽车销售有限公司","057186570000");
//阿斯顿马丁
var asidunmading = new Array("阿斯顿马丁杭州","057187777007");
//宾利
var binli = new Array("浙江宾利汽车销售服务有限公司","057187163187");
//奔驰
var benchi = new Array("浙江星杭汽车有限公司","057188855222","杭州百得利之星汽车销售有限公司","057128099999",
                         "浙江之信汽车有限公司","4000330571","浙江华策汽车有限公司杭州分公司","057183800588",
                         "杭州东星行汽车维修有限公司建国中路分公司","057187706666","杭州东星行汽车维修有限公司","057188995558",
                         "浙江华策汽车有限公司","057188299698","上海通和贸易有限公司杭州分公司","057188855222",
                         "浙江星行汽车有限公司教工路分公司","057188935222","浙江九华汽车有限公司","057187000001",
                          "杭州九华汽车有限公司(萧山)","057182553666");
//宝马
var baoma = new Array("杭州骏宝行汽车销售服务有限公司","057128028000","杭州骏宝行展厅","057185271666",
                        "浙江杭德汽车服务有限公司","057188861133","杭州宝荣汽车销售服务有限公司","057188801111",
                        "杭州宝信汽车销售服务有限公司","057122689999","杭州和诚之宝汽车销售服务有限公司","057185288888",
                        "浙江金湖汽车服务有限公司","057188861133","浙江金湖汽车服务有限公司西湖展厅","057128990099");
//保时捷
var baoshijie = new Array("杭州滨江保时捷中心","057187777911","杭州西湖保时捷中心","057187088911");
//本田
var bentian = new Array("杭州江锦汽车销售有限公司","057128867888","浙江凯迪特约销售服务店","057686176888",
                          "杭州东顺汽车有限公司","057128901888","浙江金瑞汽车销售服务有限公司","057128051111",
                          "广汽本田汽车永达广临特约销售服务店","057163800822","广汽本田汽车康桥特约销售服务店","057188026030",
                          "广汽本田汽车之田特约销售服务店","057186492666","广汽本田汽车萧山特约销售服务店","057182363668",
                          "广汽本田汽车古田特约销售服务店","057188948000","广汽本田汽车和田特约销售服务店","057189189866",
                          "广汽本田汽车广和特约销售服务店","057182839050","广汽本田汽车顺天特约销售服务店","057128110000",
                          "广汽本田汽车富田特约销售服务店","057163166003","广汽丰田元通城北店","057128028888",
                          "广汽丰田千骅萧山店","057122893300","广汽丰田全通绍兴路店","057128997788",
                          "广汽本田汽车之田特约销售服务店建德分店","057164755555","广汽本田汽车顺天特约销售服务店桐庐分店","057129606888",
                          "东风本田汽车华顺特约销售服务店","057188162222","东风本田汽车富阳广成特约销售服务店","057161712222");
//别克
var bieke = new Array("杭州瑞泰汽车有限公司","4006559890","浙江米家汽车销售有限公司","057186012888",
                        "浙江康盛汽车销售服务有限公司","057182877000","临安米家汽车销售服务有限公司","057161072888",
                        "杭州怡和汽车有限公司","057163433300","浙江申通时代汽车销售服务有限公司","057128926666",
                        "浙江申通汽车有限公司","057185366666");
//标致
var biaozhi = new Array("浙江康诚汽车销售服务有限公司","057188769000","浙江物产森美汽车有限公司","057186435555",
                          "浙江康桥汽车有限公司","057188028111","杭州和洵汽车销售服务有限公司","057182676330");
//比亚迪
var biyadi = new Array("杭州汇豪汽车销售服务店","057182103700","杭州萧山万兴旅游汽车有限公司(比亚迪)","057182860000",
                         "杭州保捷汽车有限公司","057188885555","杭州瑞跃汽车销售有限公司","057128902888",
                         "杭州维德汽车销售服务店","057187356599","杭州汇迪汽车销售服务有限公司","057188173000",
                         "浙江亚鑫汽车销售服务有限公司","057186851111","浙江迪信汽车销售服务有限公司","057188315555",
                         "杭州政顺汽车销售服务有限公司","057122851818","富阳市富迪汽车有限公司","057123270888");
//宝骏汽车
var baojunqiche = new Array("浙江驰达汽车有限公司","057128802888","浙江米之兰汽车销售服务有限公司","057182300188");
//奔腾
var benteng = new Array("浙江裕腾汽车有限公司","057185216565","杭州康桥红新汽车销售服务有限公司","057189000808");
//长安铃木
var changanlingmu = new Array("杭州祥通铃木汽车有限公司","057188178555","重庆长安铃木汽车销售服务有限公司杭州分公司","057188291993");
//昌河
var changhe = new Array("浙江和平汽车销售服务有限公司","057188173900","杭州长河汽车修理有限公司","057182866998",
                          "浙江和平汽车销售服务有限公司汽车城分销网点","057188173900","杭州长河汽车修理有限公司萧山直营店","057182866998");
//长城汽车
var changchengqiche = new Array("杭州百福达汽车贸易有限公司","057188281888","杭州明华汽车销售有限公司","057183876789");
//长安乘用（商用）
var changanchengyong = new Array("杭州祥通汽车有限公司","057186911088","浙江祥通汽车有限公司(下沙)","057186901088");
//川汽野马
var chuangqiyema = new Array("浙江飞誉汽车有限公司","057187244413");
//大众
var dazhong = new Array("浙江捷通汽车有限公司","057128992222","杭州百得利汽车有限公司","057128099898",
                          "浙江宝通汽车有限公司","057185381188","杭州旅行者汽车销售服务有限公司","057188030111",
                          "上海大众汽车富阳特约维修站","057123232222","杭州萧山浦发汽车贸易有限公司","057182271100",
                          "上海大众汽车浙江销售服务有限公司","057186490777","浙江申浙汽车股份有限公司","057188012556",
                          "上海大众汽车萧山销售服务有限公司","057182736448","上海大众汽车临安销售服务有限公司","057163758566",
                          "杭州申华汽车有限公司","057185380000","浙江一汽汽车销售服务有限公司","057188019000",
                          "浙江金恒德华能汽车有限公司","057122801777","浙江省直汽车销售服务有限公司","057185022985",
                          "杭州元泽汽车有限公司","057186136999","上海大众汽车浙江省直销售服务有限公司","057187053737",
                          "杭州西湖汽车销售服务有限公司","057128879867","杭州百年汽车销售服务有限公司","057157117990",
                          "杭州百瑞汽车有限公司","057158110808","杭州辉腾定制中心","057128992222",
                          "杭州嘉洋汽车销售服务有限公司","057157179555");
//东风风行
var dongfengfengxing = new Array("浙江元通风行汽车有限公司","057188210091","浙江宝诚汽车销售有限公司","057188171717",
                                    "浙江元通淳安金宏店","057164824868","浙江元通富阳搏翔店","057123226333",
                                    "浙江元通萧山直营店","057183782218","杭州伟杰汽车销售服务有限公司","13858017218",
                                    "浙江元通富阳东南店","057123206066","浙江元通余杭勤龙店","057186156368",
                                    "浙江元通建德物资店","057164702408","浙江元通临安外贸店","057163929933",
                                    "浙江元通桐庐桐鑫店","057164607333");
//帝豪
var dihao = new Array("杭州豪帝汽车销售服务有限公司","057128996655");
//东南三菱
var dongnansanling = new Array("浙江康达杭州城东销售服务店","057186016188","浙江康达汽车工贸有限公司杭州大关销售服务店","057185233309",
                                "浙江康达杭州临安销售店","057163748398","浙江康达汽车工贸有限公司杭州汽车城销售店","057158116658",
                                "浙江康达杭州城北销售服务店","057188013033","浙江康达汽车工贸有限公司杭州余杭销售店","057189162880");
//道奇
var daoqi = new Array("浙江辰通汽车服务有限公司","057186015678");
//东风风神
var dongfengfengshen = new Array("浙江宝雪龙汽车销售服务有限公司","057188015678","东风风神杭州新瑞专营店","057188298681");
//法拉利
var falali = new Array("杭州骏意汽车技术咨询服务有限公司","057187919430");
//福特
var fute = new Array("浙江康众汽车有限公司","057156078614","浙江万国汽车有限公司","057188292926",
                    "浙江万国汽车有限公司萧山分公司","057182839009","浙江万国汽车有限公司车城分公司","057188292926",
                    "浙江万国美福汽车有限公司","057186018811","浙江福通汽车有限公司","057187770680",
                    "浙江福通汽车有限公司临安分公司","057161070881","浙江福通汽车有限公司富阳分公司","057163318318");
//菲亚特
var feiyate = new Array("杭州广元汽车有限公司","15268190016","浙江之菲汽车有限公司","4006802105");
//丰田
var fengtian = new Array("杭州东昌汽车销售服务有限公司","057188111100","浙江新世纪汽车销售服务有限公司","057188026030",
                        "浙江全通汽车维修有限公司","057128997788","杭州金丰丰田汽车销售服务有限公司","057186993231",
                        "杭州龙通丰田汽车服务有限公司","057188943888","杭州江干丰田汽车销售服务有限公司","057186702200",
                        "杭州康桥丰田汽车销售服务有限公司","057182877800","杭州东昌丰田汽车销售服务有限公司","057163165500",
                        "海宁佳禾丰田汽车销售服务有限公司","057387017881","上虞胜康丰田汽车销售服务有限公司","057581266666",
                        "诸暨裕丰丰田汽车销售服务有限公司","057587389177","广汽丰田贵和临平店","057189276888",
                        "广汽丰田天信灵溪店","057759926666","广汽丰田广成富阳店","057161736001",
                        "杭州和诚八下里丰田","057188028288","杭州康隆丰田汽车销售服务有限公司","057189276865");
//福迪汽车
var fuduqiche = new Array("杭州福迪汽车销售有限公司拱墅店","057188172965","杭州福迪汽车销售有限公司萧山店","057182880985");
//广汽乘用车
var guangqichengyongche = new Array("浙江之广汽车有限公司","057186636111","广汽之广萧山店","057182661606");
//广汽长丰
var guangqichangfeng = new Array("浙江康宇汽车销售有限公司","057188782121","浙江辰通汽车有限公司","057188283030",
                                "杭州祝富汽车销售有限公司","057182879892");
//华晨金杯
var huachenjinbei = new Array("浙江元润汽车有限公司","057186927777");
//华晨中华
var huachenzhonghua = new Array("杭州奔奥汽车服务有限公司","057182839186","浙江元通华晨汽车有限公司","057186926666",
                                "浙江元润汽车有限公司","057186927777","浙江元通华晨汽车有限公司萧山分公司","057183864352");
//红旗
var hongqi = new Array("浙江康桥鸿达汽车销售服务有限公司","057189000808","浙江裕腾汽车有限公司","057185216565");
//海马
var haima = new Array("杭州海通销售服务店（杭州汽车城）","13388421100","杭州海通销售服务店","057128822998",
                        "富阳海通销售服务店","057123225999","杭州福仕通汽车销售有限公司","057128826555");
//哈飞汽车
var hafeiqiche = new Array("杭州路尊汽车销售有限公司","057188283528");
//华泰汽车
var huataiqiche = new Array("浙江康宇汽车销售有限公司","057188782121");
//捷豹
var jiebao = new Array("杭州世之贸汽车贸易有限公司","057186413333","杭州运通和乔汽车销售服务有限公司","057188827000",
                        "浙江路德行汽车有限公司","057187356588","杭州路德行汽车有限公司(萧山)","057182728585");
//Jeep
var jeep = new Array("浙江辰通汽车服务有限公司","057186015678");
//江淮汽车
var jianghuaiqiche = new Array("杭州金丰汽车有限公司","057186578588","杭州诚铭工贸有限公司","057122800000",
                                "杭州江盛汽车有限公司","057128803111","江淮轿车杭州金丰特许销售服务店","057186578588");
//江铃汽车
var jianglingqiche = new Array("浙江江铃汽车销售服务有限公司","057188011439","浙江康顺汽车有限公司","057188015928","浙江江铃汽车销售服务有限公司(萧山)","057188016311");
//凯迪拉克
var kaidilake = new Array("浙江米卡迪汽车销售服务有限公司","057188175888","浙江康源汽车销售服务有限公司","057188301666");
//克莱斯勒
var kelaisile = new Array("浙江辰通汽车服务有限公司","057186015678");
//开瑞
var kairui = new Array("杭州强瑞汽车贸易有限公司","057123650999","杭州万保汽车销售有限公司","057182837868");
//劳斯莱斯
var laosilaisi = new Array("杭州森那美汽车销售服务有限公司","057187038799");
//兰博基尼
var lanbojini = new Array("兰博基尼杭州","057187074999");
//路虎
var luhu = new Array("杭州世之贸汽车贸易有限公司","057186413333","杭州运通和乔汽车销售服务有限公司","057188827000",
                        "杭州路德行汽车有限公司(萧山)","057182728585","浙江路德行汽车有限公司","057187356565");
//雷诺
var leinuo = new Array("杭州众泰汽车销售服务有限公司","057128057688");
//雷克萨斯
var leikesasi = new Array("浙江元通雷克萨斯汽车销售服务有限公司","057128990000","浙江广通雷克萨斯汽车销售服务有限公司","057186498866",
                            "浙江广通LEXUS雷克萨斯城市展厅","057187048866");
//莲花汽车
var lianhuaqiche = new Array("杭州康恒汽车销售服务有限公司","057188019998");
//力帆汽车
var lifanqiche = new Array("桐庐远东汽车销售服务有限公司","057164225258","浙江博速汽车有限公司","13216102500");
//陆风汽车
var lufengqiche = new Array("浙江九龙汽车销售服务有限公司","057128028555","浙江江铃汽车销售服务有限公司萧山分公司","057182837908",
                                "浙江宏鑫汽车销售服务有限公司","057188182733","浙江九龙汽车销售服务有限公司余杭专卖店","057186236368",
                                "浙江九龙汽车销售服务有限公司建德专卖店","057164713198","浙江九龙汽车销售服务有限公司富阳专卖店","057123292773",
                                "浙江九龙汽车销售服务有限公司桐庐专卖店","057164215356","浙江九龙汽车销售服务有限公司淳安专卖店","057164713198");
//玛莎拉蒂
var mashaladi = new Array("杭州骏意汽车销售服务有限公司","057187919430");
//MINI
var mini = new Array("杭州杭德汽车服务有限公司城市展厅","057128990077","浙江金湖机电有限公司","057188861133");
//马自达
var mazida = new Array("杭州骏兴汽车有限公司","057128001888","浙江裕菲汽车销售服务有限公司","057122812222",
                        "浙江康桥宏马汽车有限公司","057186015888","浙江瑞达汽车有限公司","057188171777",
                        "杭州骏马汽车销售服务有限公司","057188017111","浙江孚达汽车有限公司","057182786666",
                        "杭州骏田汽车有限公司","057188961333","杭州睿马汽车有限公司","057181603333",
                        "杭州爱马汽车有限公司","4006508157","杭州森悦一达汽车有限公司","057186263111",
                        "杭州广润汽车有限公司","057189361888");
//MG
var mg = new Array("浙江百和汽车销售服务有限公司","057186087666","浙江申孚汽车销售服务有限公司","057188332666",
                    "杭州禾润汽车销售服务有限公司","057182679000");
//纳智捷
var nazhijie = new Array("杭州华智汽车销售服务有限公司","057128110701","浙江元捷汽车销售服务有限公司","057128029999",
                            "杭州华佑汽车销售服务有限公司","057128281282");
//讴歌
var ouge = new Array("杭州宝日汽车有限公司","057128932333");
//欧宝
var oubao = new Array("浙江捷通汽车有限公司","057128825555");
//起亚
var qiya = new Array("杭州东风南方起亚专营店","057188292000","浙江怡然汽车销售有限公司","057188179500",
                        "浙江东风南方汽车销售服务有限公司","057188291999","杭州德龙汽车销售服务有限公司","057183866000",
                        "杭州正工鸿大汽车销售服务有限公司","057189175555","浙江杭州昌炎汽车销售服务有限公司","05716471398",
                        "杭州圣大汽车有限公司","057186637666");
//全球鹰
var quanqiuying = new Array("杭州远景汽车服务有限公司","057188175777");
//奇瑞
var qirui = new Array("杭州伟达汽车销售服务有限公司","057182875222","浙江隆中汽车销售服务有限公司","057186855588",
                        "浙江奇祥汽车销售服务有限公司","057188178166","杭州伟达汽车销售服务有限公司","057182875689",
                        "杭州新中南汽车维修有限公司","057188139020","杭州百福达汽车贸易有限公司","05722191088",
                        "杭州志勤汽车销售服务有限公司","057182682000");
//日产
var richan = new Array("浙江友通汽车有限公司","13486355840","东风日产杭州东风南方滨安专营店","057182718833",
                         "东风日产杭州万风专营店","057126266666","东神专营店","057182870111",
                        "东风日产杭州元通友通专营店","057186012345","东风日产杭州元通港昌专营店","057187999555",
                        "东风日产杭州和诚城北专营店","057188290818","东风日产风神通惠专营店","057122801777",
                        "东风日产海宁旅行者专营店","057387872323","东风日产诸暨润华专营店","057587277218",
                        "东风日产杭州东风南方杭城专营店","057188016881","东风日产临安君悦专营店","057161076666",
                        "浙江友佳汽车有限公司","057186015511","浙江友佳汽车有限公司萧山分公司","057183864153",
                        "东风日产东风南方宁新专营店","057183531555");
//上汽荣威
var shangqirongwei = new Array("浙江百和汽车销售服务有限公司","057186087666","浙江申孚汽车销售服务有限公司","057188332666",
                                    "杭州禾润汽车销售服务有限公司","057182679000");
//斯巴鲁
var sibalu = new Array("浙江滨康汽车销售服务有限公司","057186600606","浙江康桥新辰汽车销售服务有限公司","057128926688");
//三菱
var sanling = new Array("浙江辰通汽车有限公司","057188283030","浙江康达汽车工贸有限公司(萧山)","057183873030");
//斯柯达
var sikeda = new Array("浙江迅通汽车有限公司","057188291000","浙江捷康汽车销售服务有限公司","057186017777",
						"杭州振发汽车销售服务有限公司","057183691988","浙江捷康汽车销售服务有限公司(余杭)","057189260000");
//双环
var shuanghuan = new Array("杭州明华汽贸有限公司","057122860666","杭州市双环汽车专营店","15978150866");
//上汽通用五菱雪佛兰
var shangqitongyongwulingxuefolai = new Array("浙江米之兰汽车销售服务有限公司","057182839068","江驰达汽车有限公司","057128826768",
												"杭州光明实业有限公司汽车修理厂","057182839066");
//上汽通用五菱
var shangqitongyongwuling = new Array("杭州光明实业有限公司","057182300182","浙江五菱汽车销售服务有限公司","057128885050",
										"浙江五菱汽车销售服务有限公司(余杭)","057189263850","浙江五菱汽车销售服务有限公司(富阳)","057163325050",
										"杭州鹏飞汽车有限公司","057128915850","桐庐菱通汽车销售有限公司","057164600559",
										"浙江五菱汽车销售服务有限公司(临安)","057163805050","淳安县浪达汽车销售有限公司","057164825050");
//天津一汽,夏利
var tianjinyiqi = new Array("浙江津通汽车有限公司","057188283668","浙江永通汽车有限公司","057128862345",
							"浙江中天汽车有限公司","057156813333");
//沃尔沃
var woerwo = new Array("杭州世之贸汽车服务有限公司","057186753333","浙江万友汽车有限公司","057188799887",
						"杭州中沃汽车销售服务有限公司","057186606060","沃尔沃汽车浙江万友黄龙展厅","4008851525");
//现代
var xiandai = new Array("浙江韩通汽车有限公司","4000801100","浙江和诚全通汽车有限公司","057128866222",
						"浙江中现汽车销售服务有限公司","057128806573","北京现代汽车通达特约销售服务店","057182879999",
						"浙江金凯汽车销售服务有限公司","057182803333","杭州康桥汽车修配厂","057188750600",
						"临安强生汽车销售服务有限公司","057123614888","建德市汽车修理厂","057164701315",
						"北京现代和诚西现特约销售服务店","057187653111","浙江康达汽车工贸有限公司","057188017197",
						"桐庐远东汽车销售服务有限公司","057164225278");
//雪佛兰
var xuefolan = new Array("浙江兰通汽车有限公司","057128912222","浙江瑞雪汽车有限公司","057128002100",
							"杭州米家铭杰汽车销售服务有限公司","057182875500","浙江康瑞汽车销售服务有限公司","057186266655",
							"临安米家铭杰汽车销售有限公司","057161071999","杭州诚和汽车有限公司","057163433900");
//雪铁龙
var xuetielong = new Array("浙江富通汽车有限公司","057185380300","杭州东风鸿泰汽车销售服务有限公司","057185838888",
							"杭州萧山万兴旅游汽车有限公司","057182788666");
//英菲尼迪
var yingfeinidi = new Array("杭州九和汽车维修服务有限公司","057188175599","杭州博信汽车销售服务有限公司","057128102222");
//一汽欧朗
var yiqioulang = new Array("浙江裕腾汽车有限公司","057185216565","杭州康桥红新汽车销售服务有限公司","057189000808");
//英伦汽车
var yinglunqiche = new Array("杭州鼎伦汽车有限公司","057181606005","杭州昌恒汽车贸易有限公司","057188781688");
//一汽吉林
var yiqijili = new Array("杭州萧山亚通汽车有限公司","057182839098","杭州众天汽车贸易有限公司","057128111988",
						"杭州元佳汽车有限公司","057189191906");
//中兴汽车
var zhongxingqiche = new Array("杭州新世纪机电设备有限公司","057156125179");
//众泰汽车
var zhongtaiqiche = new Array("杭州中古汽车有限公司","057188899988","建德市众安汽车销售有限公司","057164759990",
								"杭州友泰汽车有限公司","057188025853","杭州友泰汽车有限公司(临安昌化)","13819464476",
								"杭州友泰汽车有限公司(临安)","057163761756","杭州友泰汽车有限(桐庐)","057169811166",
								"杭州友泰汽车有限公司(萧山)","057157103722","杭州友泰汽车有限公司(瓶窑)","13516859922",
								"杭州友泰汽车有限公司车城直营店","057188025851","杭州友泰汽车有限公司(临平)","057186158911",
								"富阳市全通汽车销售有限公司","057123256669");
	
var brandPhoneBook = new Array(audi,asidunmading,binli,benchi,
							   baoma,baoshijie,bentian,bieke,
							   biaozhi,biyadi,baojunqiche,benteng,
							   changanlingmu,changhe,changchengqiche,changanchengyong,
							   chuangqiyema,dazhong,dongfengfengxing,dihao,
							   dongnansanling,daoqi,dongfengfengshen,falali,
							   fute,feiyate,fengtian,fuduqiche,
							   guangqichengyongche,guangqichangfeng,huachenjinbei,huachenzhonghua,
							   hongqi,haima,hafeiqiche,huataiqiche,
							   jiebao,jeep,jianghuaiqiche,jianglingqiche,
							   kaidilake,kelaisile,kairui,laosilaisi,
							   lanbojini,luhu,leinuo,leikesasi,
							   lianhuaqiche,lifanqiche,lufengqiche,mashaladi,
							   mini,mazida,mg,nazhijie,ouge,
							   oubao,qiya,quanqiuying,qirui,
							   richan,shangqirongwei,sibalu,sanling,
							   sikeda,shuanghuan,shangqitongyongwulingxuefolai,shangqitongyongwuling,
							   tianjinyiqi,woerwo,xiandai,xuefolan,
							   xuetielong,yingfeinidi,yiqioulang,yinglunqiche,
							   yiqijili,zhongxingqiche,zhongtaiqiche);

function commonJumpToPhoneBrand(index){
    curPhoneBrand = index;
    curCommonPage = 2;
    $('body').css('background','white');
    console.log('commonJumpToPhoneBrand:step1'+",brandPhoneBook.length:"+brandPhoneBook.length+",brandPhoneBook[0].length"+brandPhoneBook[0].length);
    i = index;
    {
        j=0;
        var posOfLi		= document.getElementById("list_brandphone");
        posOfLi.innerHTML = "";
        for(;j<brandPhoneBook[i].length;j=j+2){
            console.log('commonJumpToPhoneBrand:step2'+",j:"+j);
            phoneName = brandPhoneBook[i][j];
            phoneNum = brandPhoneBook[i][j+1];
            var newLiItem	= document.createElement("li");
            var liContent =
                    "<a onClick=\"callTel(\'"+phoneNum+"\');\">"+
                    "<h3>"+phoneName+"</h3>"+
                    "<p>"+phoneNum+"</p>"+
                    "<a  data-icon='ui-icon-plus' onClick=\"addContactToPhoneBook(\'"+phoneName+"\',\'"+phoneNum+"\');\">"+
                    "添加至联系人"+
                    "</a>"+
                    "</a>";
            console.log('commonJumpToPhoneBrand:liContent:'+liContent);
            newLiItem.setAttribute("data-icon", "ui-icon-plus");
            newLiItem.innerHTML=liContent;
            posOfLi.appendChild(newLiItem);
        }
    }
    lmtab('lmt14');
    backbtn.show();
    $("#list_brandphone").listview("refresh");
    brandPhoneAutoScroller.refresh();
}

function jumpToMain(){
	curPage = 0;
	lmtab('lmt1');
	console.log('jumpToMain:curPage'+curPage);
	backbtn.hide();
}

function asyncReqListByNameParser(errorcode, data, status)
{
	var posOfLi		= document.getElementById("listView_lmcd2_shopList");
  
	if(0 == errorcode)
	{
		$.each(data, function(i,item){

					var newLiItem	= document.createElement("li");
  				var liContent = "";
  				
  				/*
  				newLiItem.setAttribute("data-corners", "false");
  				newLiItem.setAttribute("data-shadow", "false");
  				newLiItem.setAttribute("data-iconshadow", "true");
  				newLiItem.setAttribute("data-wrapperels", "div");
  				newLiItem.setAttribute("data-icon", "arrow-r");
  				newLiItem.setAttribute("data-iconpos", "right");
  				
  				newLiItem.setAttribute("data-theme", "c");
  				newLiItem.setAttribute("class", "ui-btn ui-btn-icon-right ui-li-has-arrow ui-li ui-li-has-thumb ui-btn-up-c");*/
  				
  				/*
					liContent = "<a onclick = 'jumpToShopDetails(" 
												+ item.stationid 
												+ ");'><img src = '" 
												+ item.logopath + "'/><h3>"
												+ item.stationname
												+ "</h3><p><span class='ui-li-staic' style='float:right; margin-right:20px'>服务价格:"
												+ item.markPrice
												+ "元"
												+ "  距离:1"
												+ "</span></p></a>";
					*/
					
					/*
					liContent = 	'<div class="ui-btn-inner ui-li"><div class="ui-btn-text">'
												+ "<a onclick = 'jumpToShopDetails(" 
												+ item.stationid 
												+ ");' class='ui-link-inherit'><img src = '" 
												+ "http://127.0.0.1/uploads/pic/logo.jpg" + "'class='ui-li-thumb'></td><td><h3>站点名称："
												+ item.stationname
												+ "</h3><p><span class='ui-li-staic' style='float:right; margin-right:20px'>服务价格:"
												+ item.markPrice
												+ "元"
												+ "  距离:1"
												+ "</span></p></a>";
					*/
					
					liContent = "<a onclick = 'jumpToShopDetails(" 
												+ item.stationid 
												+ ");'><img src = '" 
												+ "http://127.0.0.1/uploads/pic/logo.jpg" + "'/></td><td><h3>站点名称："
												+ item.stationname
												+ "</h3><p><span class='ui-li-staic' style='float:right; margin-right:20px'>服务价格:"
												+ item.markPrice
												+ "元"
												+ "  距离:1"
												+ "</span></p></a>";
					
					
					//liContent = '<a onclick="searchJumpToShopDetail();"><img src="img/shop.jpg" /><h3>Broken Bells</h3><p>Broken Bells<span class="ui-li-staic" style="float:right; margin-right:20px">1234</span></p></a>';
					/*
					liContent = '<table border="0"><tr><td>'
												+ "<a onclick = 'jumpToShopDetails(" 
												+ item.stationid 
												+ ");'><img src = '" 
												+ "http://127.0.0.1/uploads/pic/logo.jpg" + "'/></td><td><h3>站点名称："
												+ item.stationname
												+ "</h3><p><span class='ui-li-staic' style='float:right; margin-right:20px'>服务价格:"
												+ item.markPrice
												+ "元"
												+ "  距离:1"
												+ "</span></p></td></a></tr></table";*/
					
					console.log('liContent:'+liContent);
												
					newLiItem.innerHTML=liContent;
  				posOfLi.appendChild(newLiItem);
  				
				});
					
	}else if(1 == errorcode)
	{
		var newLiItem	= document.createElement("li");
  	var liContent = "";
  	
		liContent = "连接服务器超时! 请检查你的网络环境";
		newLiItem.innerHTML=liContent;
  	posOfLi.appendChild(newLiItem);
	}else{
		//NOT DEFINED ERRCODE
	}
	
	$("#listView_lmcd2_shopList").listview("refresh");
	myScroll.refresh();
}


function asyncReqListByTypeParser(errorcode, data, status, tid)
{
	var posOfLi		= document.getElementById("listView_lmcd2_shopList");
//  var nLength		= s.childNodes.length;
   
  if(0 == errorcode)
  {
		if(1 == tid)
		{
			$.each(data, function(i,item){ 
						var newLiItem	= document.createElement("li");
  					var liContent = "";
											
						liContent = "<a onclick = 'jumpToShopDetails(" 
												+ item.stationid 
												+ ");'><img src = '" 
												+ item.logopath + "'/><h3>"
												+ item.stationname
												+ "</h3><p><span class='ui-li-staic' style='float:right; margin-right:20px'>服务价格:"
												+ item.markPrice
												+ "元/升"
												+ "  距离:1"
												+ "</span></p></a>";
												
						newLiItem.innerHTML=liContent;
  					posOfLi.appendChild(newLiItem);
  					
						});
		}else if(2 == tid)
		{
			$.each(data, function(i,item){ 
						var newLiItem	= document.createElement("li");
  					var liContent = "";
						
						liContent = "<a onclick = 'jumpToShopDetails(" 
												+ item.stationid 
												+ ");'><img src = '" 
												+ item.logopath + "'/><h3>"
												+ item.stationname
												+ "</h3><p><span class='ui-li-staic' style='float:right; margin-right:20px'>服务价格:"
												+ item.markPrice
												+ "元/次"
												+ "  距离:1"
												+ "</span></p></a>";
												
						newLiItem.innerHTML=liContent;
  					posOfLi.appendChild(newLiItem);
  					
						});	
		}else{
			// tid not defined
		}
	}else if(1 == errorcode)
	{
		var newLiItem	= document.createElement("li");
  	var liContent = "";
  	
		liContent = "连接服务器超时! 请检查你的网络环境";
		newLiItem.innerHTML=liContent;
  	posOfLi.appendChild(newLiItem);
	}
	
	$("#listView_lmcd2_shopList").listview("refresh");
	myScroll.refresh();
}

function asyncReqDetailParser(errorcode, data, status)
{ 
	if(0 == errorcode)
	{
		$.each(data, function(i,item){
						var newLiItem	= document.createElement("li");
  					var liContent = "";
			
						var posOfImgSrc 	= document.getElementById("img_imct3_logoPath"); 
						var posOfSerPrc 	= document.getElementById("tab_lmct3_servicePrice");
						var posOfStName		= document.getElementById("img_imct3_stationname");
						var posOfDistance	= document.getElementById("tab_lmc3_distance");
						var posOfAddress	= document.getElementById("span_lmct3_address"); 
						var posOfTelNum		= document.getElementById("span_lmct3_telNum");	
						var posOfDisCount	= document.getElementById("ul_lmct3_discount");
						var posOfService	= document.getElementById("ul_lmct3_services");
									 
						//posOfImgSrc.innerHTML 	= item.logopath;
						posOfImgSrc.src 				= "http://127.0.0.1/uploads/pic/logo.jpg";
						posOfSerPrc.innerHTML 	= "服务价格:" + item.markPrice;
						posOfStName.innerHTML		= "站点名称:" + item.stationname;
						posOfDistance.innerHTML = "距离" + 100;
						posOfAddress.innerHTML	= "地址" + item.addr;
						posOfTelNum.innerHTML		= "电话" + item.tel;
						//posOfDisCount.innerHTML	= "优惠信息" + item.vipdiscount;
						
						newLiItem = document.createElement("li");
						liContent = "优惠信息" + item.vipdiscount;
						posOfDisCount.appendChild(newLiItem);
						
						newLiItem.innerHTML = liContent;
						posOfDisCount.appendChild(newLiItem);
						
						for(var a in item.servicelist)
						{
    					newLiItem = document.createElement("li");
							liContent = a["sername"] + a["price"] + "会员:" + a["vipdiscount"];
							newLiItem.innerHTML = liContent;
							posOfService.appendChild(newLiItem);	
						}
						
						
						});
	}else if(1 == errorcode)
	{
		
	}
	$("#ui_mnct3_connects").listview("refresh");
	$("#ul_lmct3_discount").listview("refresh");
	$("#ul_lmct3_services").listview("refresh");
	showScroll.refresh();
}

function asyncReqSuccDispatch(errorcode, data, status, tid)
{
	switch(tid)
	{
		case 0:
		{
			asyncReqListByNameParser(errorcode, data, status);
		}break;
		
		case 1:	//加油站
		{
			asyncReqListByTypeParser(errorcode, data, status, 1);
		}break;
		
		case 2:	//洗车
		{
			asyncReqListByTypeParser(errorcode, data, status, 2);
		}break;
		
		case 3:	//详细
		{
			asyncReqDetailParser(errorcode, data, status);
		}break;
		
		default: //没定义
		{
			
		}
	}
}

function asyncReqPostor(reqUrl, paramArray, tid)
{
	console.log('asyncReqPostor enter, paramArray:' + paramArray + ' url:' + reqUrl + ' tid:' + tid);
	$.ajax({
			url: reqUrl,
			type: "POST",
      data:	paramArray,
			dataType: 'jsonp',
			jsonp: 'jsoncallback',
			timeout: 5000,
			success: function(data, status){
				console.log('asyncReqPostor succ');
				asyncReqSuccDispatch(0, data, status, tid);
			},
			error: function (XMLHttpRequest, textStatus, errorThrown){
				console.log('asyncReqPostor error' + textStatus + errorThrown);
				asyncReqSuccDispatch(1, 0, 0, tid);
			}
	});
}

function asyncReqListCenter(tid, p0, p1, p2)
{
	var postUrl = "http://127.0.0.1/db/queryInterface.php";
	var postParam = {};
	var key;
	var val;
	
	switch(tid)
	{
		case 0:	//通过名字搜素
		{
			key = "requestcode";
			val = 1045;
			postParam[key] = val;
			
			key = "param1";
			val = simLat;
			postParam[key] = val;
			
			key = "param2";
			val = simLon;
			postParam[key] = val;
			
			key = "param3";
			val = document.getElementById("input_lmc1_search").value;
			postParam[key] = val;
			
			asyncReqPostor(postUrl, postParam, tid);
		}break;
		
		case 1:	//加油站
		{
			key = "requestcode";
			val = 1047;
			postParam[key] = val;
			
			key = "param1";
			val = simLat;
			postParam[key] = val;
			
			key = "param2";
			val = simLon;
			postParam[key] = val;
			
			key = "param3";
			val = 0;				//这是加油站的type
			postParam[key] = val;
			
			asyncReqPostor(postUrl, postParam, tid);
		}break;
		
		case 2:	//洗车
		{
			key = "requestcode";
			val = 1047;
			postParam[key] = val;
			
			key = "param1";
			val = simLat;
			postParam[key] = val;
			
			key = "param2";
			val = simLon;
			postParam[key] = val;
			
			key = "param3";
			val = 1;				//这是洗车的type
			postParam[key] = val;
			
			asyncReqPostor(postUrl, postParam, tid);
		}break;
		
		case 3:	//详细
		{
			key = "requestcode";
			val = 1085;
			postParam[key] = val;
			
			key = "param1";
			val = p0;			//这边使用P0适配ID
			postParam[key] = val;
			
			asyncReqPostor(postUrl, postParam, tid);
		}break;
		
		default: //没定义
		{
			
		}
	}
}

function jumpToShopLists(tid){
	//jump to show lists page
	curPage = 1;
	console.log('jumpToShopLists:curPage'+curPage);
	lmtab('lmt2');
	backbtn.show();
	asyncReqListCenter(tid, 0, 0, 0);
	myScroll.refresh();
}

function jumpToShopDetails(stationid){
	curPage = 2;
	lmtab('lmt3');
	console.log('jumpToShopDetails:curPage'+curPage);
	isLockCall = false;
	backbtn.show();
	asyncReqListCenter(3, stationid, 0, 0);
	showScroll.refresh();
}

function callTel(phoneNum){
	if(isLockCall==false)
    {
		isLockCall = true;
    	var uir = ("tel:"+phoneNum); window.plugins.childBrowser.openExternal(uir);
    	console.log('callTel:');
    	document.addEventListener("backbutton", onNothing, false);
	}
}

function driveToDes(){
	if(isLockCall==false)
    {
		isLockCall = true;
		var uir = ("31231360:121470040"); window.plugins.childBrowser.openExternal(uir,false);
		console.log('driveToDes:');
		document.addEventListener("backbutton", onNothing, false);
	}
}

function onNothing(){
	//do nothing
}

//Handle the back button
function onBackKeyDown() {
	console.log('onBackKeyDown:'+curPage);
	switch(curPage){
	case 0:
		{
			navigator.app.exitApp();
			break;
		}
	case 1:
		{
			jumpToMain();
			break;
		}
	case 2:
		{
			jumpToShopLists();
			break;
		}
	}
}

function common_onKeyBack() {
	console.log('common_onKeyBack:'+curCommonPage);
	switch(curCommonPage){
	case 0:
		{
			navigator.app.exitApp();
			break;
		}
	case 1:
		{
			commonJumpToMain();
			break;
		}
    case 2:{
        commonJumpToPhoneList(2);
        break;
    }
	}
}


function search_onBackKeyDown(){
	console.log('search_onBackKeyDown:'+curSearchPage);
	switch(curSearchPage){
	case 0:
		{
			navigator.app.exitApp();
			break;
		}
	case 1:
		{
			searchJumpToMain();
			break;
		}
	case 2:
		{
			searchJumpToShopList();
			break;
		}
	}
}

function help_onBackKeyDown(){
    switch(curHelpPage){
        case 0:{
            navigator.app.exitApp();
            break;
        }
        case 1:
        case 2:
        case 3:{
            sendBtn = $('#sendFeedBk');
            sendBtn.hide();
            helpJumpToMain();
            break;
        }
    }
}


function onTotalBackKey(){
    console.log('onTotalBackKey:curTabCard:'+curTabCard);
	switch(curTabCard){
	case 0:
		{
		onBackKeyDown();
		break;
		}
	case 1:
		{
		common_onKeyBack();
		break;
		}
	case 2:
		{
		search_onBackKeyDown();
		break;
		}
        case 3:{
            //todo:
            break;
        }
        case 4:{
            help_onBackKeyDown();
            break;
        }
	}
}

function findContactSuccess(contacts){
	if(contacts.length==0){
		findContactError("");
	}
	else{
        isAdding = false;
		alert('您要添加的联系人已经在您的通讯录中!');
	}
}

var isAdding = false;

function addContactSuccess(){
    isAdding = false;
	alert('恭喜您，联系人添加成功');	
}

function addContactErr(){
    isAdding = false;
	alert('抱歉，添加联系人失败');
}


var myContact;


function findContactError(msg){
    console.log("The contact, " + myContact.displayName + ", is of the " + myContact.gender + " gender");
	myContact.save(addContactSuccess,addContactErr);
}

function addContactToPhoneBook(phoneName,phonenum){
	var options = new ContactFindOptions();
	var phoneNumbers = [];
	console.log("addContactToPhoneBook:phoneName:"+phoneName+",phonenum:"+phonenum);
	phoneNumbers[0] = new ContactField('mobile', phonenum, true);     // 首选项
	myContact = navigator.contacts.create();
    myContact.phoneNumbers = phoneNumbers;
	myContact.nickname = phoneName;
	myContact.displayName = phoneName;
	options.filter = phoneName;
	options.multiple = true;
	var fields = ["displayName", "name"];
    if(!isAdding){
        isAdding = true;
        navigator.contacts.find(fields, findContactSuccess, findContactError, options);
    }
}

function sendFeedBk(){
    //todo:
}

document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);


function onSuccess(position) {
	alert('onSuccess');
	var element = document.getElementById('geolocation');
	element.innerHTML = 'Latitude: '           + position.coords.latitude              + '<br />' +
						'Longitude: '          + position.coords.longitude             + '<br />' +
						'Altitude: '           + position.coords.altitude              + '<br />' +
						'Accuracy: '           + position.coords.accuracy              + '<br />' +
						'Altitude Accuracy: '  + position.coords.altitudeAccuracy      + '<br />' +
						'Heading: '            + position.coords.heading               + '<br />' +
						'Speed: '              + position.coords.speed                 + '<br />' +
						'Timestamp: '          + new Date(position.timestamp)          + '<br />';
}

// onError回调函数接收一个PositionError对象
function onError(error) {
	alert('code: '    + error.code    + '\n' +
		'message: ' + error.message + '\n');
}



document.addEventListener('deviceready',function(){
	console.log("deviceready");
	document.addEventListener("backbutton", onTotalBackKey, false);
	document.addEventListener("resume", onResume, false);
});
/* * * * * * * *
 *
 * Use this for high compatibility (iDevice + Android)
 *
 */
document.addEventListener('DOMContentLoaded', function () { setTimeout(loaded, 200); }, false);
/*
 * * * * * * * */


/* * * * * * * *
 *
 * Use this for iDevice only
 *
 */
//document.addEventListener('DOMContentLoaded', loaded, false);
/*
 * * * * * * * */


/* * * * * * * *
 *
 * Use this if nothing else works
 *
 */
//window.addEventListener('load', setTimeout(function () { loaded(); }, 200), false);
/*
 * * * * * * * */


</script>

<style type="text/css" media="all">
body,ul,li {
	padding:0;
	margin:0;
	border:0;
}

body {
	font-size:12px;
	-webkit-user-select:none;
    -webkit-text-size-adjust:none;
	font-family:helvetica;
    background-color: #eeeeee;
    text-align:center;
}



#scroller li {
	padding:10px 10px;
	/*height:50px;*/
	border-bottom:1px solid #ccc;
	border-top:1px solid #fff;
	background: white;
}



</style>
</head>
<body onLoad="loaded();">
	<div class="LM-header" data-role="header" data-theme="b" style="background-image: url(img/headerbk.png)">
		<h1>
            <a onClick="onTotalBackKey();" class="ui-btn-left" id="backbtn">
                <img src="img/backbutton.png" height="30" alt="" />
            </a>
			<span>
				Page Title
			</span>
            <a onClick="sendFeedBk();" class="ui-btn-right" id="sendFeedBk">
                <img src="img/backbutton.png" height="30" alt="" />
            </a>
		</h1> 
	</div> 
	<div class="LM-card cur" id="lmc1">
		<!-- start of lmt1 -->
		<div class="LM-tab cur" id="lmt1"  style="margin-top:42px">
			<ul data-role="listview" data-theme="c" data-dividertheme="d">
				<li>
		          <table align="center">
						  <tr>
							<td>
								<input type="search" name="password" value="" placeholder="附近5公里以内的商家" id = "input_lmc1_search"/>
							</td>
							<td>
							   <a  onclick="jumpToShopLists(0);">
                                   <img src="img/go.png" height="40" alt="" />
							   </a>
							</td>
						  </tr>
				  </table>
		        </li>
			</ul>
			<p style="height:30px">
			</p>

            <table width="50%" align="center">
                <tr>
                    <td  align="center">
                        <a onClick="jumpToShopLists(2);">
                            <img src="img/btn_washcar.png" height="100" alt="" />
                        </a>
                    </td>
                    <td  align="center">
                        <a onClick="jumpToShopLists(1);">
                            <img src="img/btn_addoil.png" height="100" alt="" />
                        </a>
                    </td>
                </tr>
                <tr>
                    <td  align="center">
                        <font size=5 color="#373737">
                                汽车美容
                        </font>
                    </td>
                    <td  align="center">
                        <font size=5 color="#373737">
                        汽车加油
                        </font>
                    </td>
                </tr>
            </table>
		</div><!-- end of lmt1 -->
		
	
		<!-- start of lmt2 -->
		<div class="LM-tab" id="lmt2">
			<div id="wrapper" class="LM-wrapper">
				<div id="scroller" class="LM-scroller">
				   		<ul data-role="listview" style=" width:100%;" data-theme="c" id = "listView_lmcd2_shopList">
							<li>
								<a onClick="jumpToShopDetails(100);">
								<img src="img/shop.jpg" />
								<h3>Broken Bells</h3>
								<p>
									Broken Bells
									<span class="ui-li-staic" style="float:right; margin-right:20px">
										1234
									</span>
								</p>
								</a>
							</li>
							<li>
								<a onclick="jumpToShopDetails(100);">
								<img src="img/shop.jpg" />
								<h3>Broken Bells</h3>
								<p>
									Broken Bells
									<span class="ui-li-staic" style="float:right; margin-right:20px">
										1234
									</span>
								</p>
								</a>
							</li>
						</ul>
				</div><!-- end of scroller -->
			</div><!-- end of wrapper -->
		</div> <!-- tab end -->
		
		<!-- start of lmt3 -->
		<div class="LM-tab" id="lmt3">
			<div id="shopwrapper" class="LM-wrapper" >
				<div id="shopscroller" class="LM-scroller" style="background-color: #eeeeee">
					<table width="100%" style="background-color: #eeeeee">
							<tr>
								<td >
									<a>
										<img src="img/shop.jpg" id = "img_imct3_logoPath"/>					
									</a>				
								</td>
								<td valign="top">
									<table width="100%">
										<tr>
											<td width="100%" valign="top" style="margin-top:-50px">
												<h2 id = "img_imct3_stationname">123
												</h2>						
											</td>
										</tr>
										<tr width="100%">
											<td width="40%" nowrap="nowrap">
											<span id="tab_lmct3_servicePrice">
												洗车：15元/次</span></td>
											<td  width="60%" nowrap="nowrap" align="right">
											<span id="tab_lmc3_distance">
											4581234米
											</span>							
											</td>
										</tr>
								  	</table>
								</td>
							</tr>
					  </table>
					  <!-- 水平分割线-->
					  <hr />
					  <ul data-role="listview" data-inset="true" style="background-color: #eeeeee" id = "ui_mnct3_connects">
							<li style="height:50px">
							<a  onclick="callTel();">
									<img src="img/icon-phone.png" height="30" style="margin-top: 10px"/>
									<span id = "span_lmct3_telNum">
									1234555
									</span>
							</a>
							<li style="height:50px">
							<a  onclick="driveToDes();">
									<img src="img/icon-address.png" height="30" style="margin-top: 10px" />
									<span id = "span_lmct3_address">
									地址：fjkdsjfksjdfk
									</span>
							</a>
							</li>
						</ul>	<!--end of ul -->
					
					<!--优惠信息开始 -->
					<h2>优惠信息：</h2>
					<ul data-role="listview" data-inset="true" id = "ul_lmct3_discount">
							<li>
								shops12847323479fjsdfjslkdjfklsjfkjslkfjlskjfkl jslkjflksj lkjksflkslkdj
							</li>
							<li>school</li>
							<li>hello</li>
					</ul>
					<!--end of 优惠信息-->
					<!--服务项目开始 -->
					<h2>服务项目：</h2>
					<ul data-role="listview" data-inset="true" id = "ul_lmct3_services">
							<li>
								WASHCAR:FJSDFKJSDKF
							</li>
							<li>school</li>
							<li>hello</li>
					</ul>
				</div><!-- end of scroller -->
			</div><!-- end of wrapper -->
		</div><!-- end of lmt3 -->
		
		
	</div> <!-- card end -->

	<!--  -->
	<div class="LM-card" id="lmc2">
		<div class="LM-tab cur" id="lmt4" style="margin-top:62px">
			<ul data-role="listview" data-inset="true" style="margin-left: 10px;margin-right: 10px">
				<li><a onClick="commonJumpToPhoneList(0);">紧急常用</a></li>
				<li><a onClick="commonJumpToPhoneList(1);">保险客服</a></li>
				<li><a onClick="commonJumpToPhoneList(2);">4S客服</a></li>
			</ul>
		</div>
		
		<div class="LM-tab" id="lmt10" style="margin-top:62px">
			<div id="EmergencyPhonelist" class="LM-wrapper">
				<div id="EmergencyScroller" class="LM-scroller" >
					<ul data-role="listview" data-inset="true" style="margin-left: 10px;margin-right: 10px" >
						<li data-icon="ui-icon-plus">
								<a onClick="callTel('122');">
									<h3>交通事故报警</h3>
									<p>122</p>
									<a  data-icon="ui-icon-plus" onClick="addContactToPhoneBook('交通事故报警','122');">
										添加至联系人							
									</a>
								</a>
						</li>
						<li data-icon="ui-icon-plus">
								<a onClick="callTel('120');">
									<h3>急救中心</h3>
									<p>120</p>
									<a  data-icon="ui-icon-plus" onClick="addContactToPhoneBook('急救中心','120');">
										添加至联系人							
									</a>
								</a>
						</li>
						<li data-icon="ui-icon-plus">
								<a onClick="callTel('119');">
									<h3>火警</h3>
									<p>119</p>
									<a  data-icon="ui-icon-plus" onClick="addContactToPhoneBook('火警','119');">
										添加至联系人							
									</a>
								</a>
						</li>
						<li data-icon="ui-icon-plus">
								<a onClick="callTel('114');">
									<h3>查号台</h3>
									<p>114</p>
									<a  data-icon="ui-icon-plus" onClick="addContactToPhoneBook('查号台','114');">
										添加至联系人							
									</a>
								</a>
						</li>
						<li data-icon="ui-icon-plus">
								<a onClick="callTel('110');">
									<h3>匪警</h3>
									<p>110</p>
									<a  data-icon="ui-icon-plus" onClick="addContactToPhoneBook('匪警','110');">
										添加至联系人							
									</a>
								</a>
						</li>
						<li data-icon="ui-icon-plus">
								<a onClick="callTel('12315');">
									<h3>消费者投诉</h3>
									<p>12315</p>
									<a  data-icon="ui-icon-plus" onClick="addContactToPhoneBook('消费者投诉','12315');">
										添加至联系人							
									</a>
								</a>
						</li>
						<li data-icon="ui-icon-plus">
								<a onClick="callTel('12321');">
									<h3>不良信息举报中心</h3>
									<p>12321</p>
									<a  data-icon="ui-icon-plus" onClick="addContactToPhoneBook('不良信息举报中心','12321');">
										添加至联系人							
									</a>
								</a>
						</li>
						<li data-icon="ui-icon-plus">
								<a onClick="callTel('12348');">
									<h3>法律服务</h3>
									<p>12348</p>
									<a  data-icon="ui-icon-plus" onClick="addContactToPhoneBook('法律服务','12348');">
										添加至联系人							
									</a>
								</a>
						</li>
						<li data-icon="ui-icon-plus">
								<a onClick="callTel('95598');">
									<h3>供电服务</h3>
									<p>95598</p>
									<a  data-icon="ui-icon-plus" onClick="addContactToPhoneBook('供电服务','95598');">
										添加至联系人							
									</a>
								</a>
						</li>
						<li data-icon="ui-icon-plus">
								<a onClick="callTel('12365');">
									<h3>质量监督</h3>
									<p>12365</p>
									<a  data-icon="ui-icon-plus" onClick="addContactToPhoneBook('质量监督','12365');">
										添加至联系人							
									</a>
								</a>
						</li>
						<li data-icon="ui-icon-plus">
								<a onClick="callTel('12358');">
									<h3>价格举报</h3>
									<p>12358</p>
									<a  data-icon="ui-icon-plus" onClick="addContactToPhoneBook('价格举报','12358');">
										添加至联系人							
									</a>
								</a>
						</li>
						<li data-icon="ui-icon-plus">
								<a onClick="callTel('999');">
									<h3>红十字会急救台</h3>
									<p>999</p>
									<a  data-icon="ui-icon-plus" onClick="addContactToPhoneBook('红十字会急救台','999');">
										添加至联系人							
									</a>
								</a>
						</li>
						<li data-icon="ui-icon-plus">
								<a onClick="callTel('12121');">
									<h3>天气预报</h3>
									<p>12121</p>
									<a  data-icon="ui-icon-plus" onClick="addContactToPhoneBook('天气预报','12121');">
										添加至联系人							
									</a>
								</a>
						</li>
						<li data-icon="ui-icon-plus">
								<a onClick="callTel('12117');">
									<h3>报时服务</h3>
									<p>12117</p>
									<a  data-icon="ui-icon-plus" onClick="addContactToPhoneBook('报时服务','12117');">
										添加至联系人							
									</a>
								</a>
						</li>
						<li data-icon="ui-icon-plus">
								<a onClick="callTel('12395');">
									<h3>水上求救专用</h3>
									<p>12395</p>
									<a  data-icon="ui-icon-plus" onClick="addContactToPhoneBook('水上求救专用','12395');">
										添加至联系人							
									</a>
								</a>
						</li>
				 	 </ul>
				</div>
			</div>
		</div>

        <div class="LM-tab" id="lmt11" style="margin-top:62px">
            <div id="InsurancePhonelist" class="LM-wrapper">
                <div id="InsuranceScroller" class="LM-scroller" >
                    <ul data-role="listview" data-inset="true" style="margin-left: 10px;margin-right: 10px" >
                        <li>
                            <a onClick="callTel('95535');">
                                <h3>生命人寿保险股份有限公司</h3>
                                <p>95535</p>
                                <a data-icon="ui-icon-plus" onClick="addContactToPhoneBook('生命人寿保险股份有限公司','95535');">
                                    添加至联系人
                                </a>
                            </a>
                        </li>
                        <li>
                            <a onClick="callTel('95507');">
                                <h3>大众保险股份有限公司</h3>
                                <p>95507</p>
                                <a data-icon="ui-icon-plus" onClick="addContactToPhoneBook('大众保险股份有限公司','95507');">
                                    添加至联系人
                                </a>
                            </a>
                        </li>
                        <li>
                            <a onClick="callTel('95591');">
                                <h3>中国人民健康保险股份有限公司</h3>
                                <p>95591</p>
                                <a data-icon="ui-icon-plus" onClick="addContactToPhoneBook('中国人民健康保险股份有限公司','95591');">
                                    添加至联系人
                                </a>
                            </a>
                        </li>
                        <li>
                            <a onClick="callTel('95515');">
                                <h3>合众人寿保险股份有限公司</h3>
                                <p>95515</p>
                                <a data-icon="ui-icon-plus" onClick="addContactToPhoneBook('合众人寿保险股份有限公司','95515');">
                                    添加至联系人
                                </a>
                            </a>
                        </li>
                        <li>
                            <a onClick="callTel('95596');">
                                <h3>民生人寿保险股份有限公司</h3>
                                <p>95596</p>
                                <a data-icon="ui-icon-plus" onClick="addContactToPhoneBook('民生人寿保险股份有限公司','95596');">
                                    添加至联系人
                                </a>
                            </a>
                        </li>
                        <li>
                            <a onClick="callTel('4006012345');">
                                <h3>华泰电话车险销售热线</h3>
                                <p>4006012345</p>
                                <a data-icon="ui-icon-plus" onClick="addContactToPhoneBook('华泰电话车险销售热线','4006012345');">
                                    添加至联系人
                                </a>
                            </a>
                        </li>
                        <li>
                            <a onClick="callTel('4006095509');">
                                <h3>华泰财险全国统一客服专线</h3>
                                <p>4006095509</p>
                                <a data-icon="ui-icon-plus" onClick="addContactToPhoneBook('华泰财险全国统一客服专线','4006095509');">
                                    添加至联系人
                                </a>
                            </a>
                        </li>
                        <li>
                            <a onClick="callTel('4008895509');">
                                <h3>华泰人寿全国统一客服专线</h3>
                                <p>4008895509</p>
                                <a data-icon="ui-icon-plus" onClick="addContactToPhoneBook('华泰人寿全国统一客服专线','4008895509');">
                                    添加至联系人
                                </a>
                            </a>
                        </li>
                        <li>
                            <a onClick="callTel('8009886688');">
                                <h3>中德安联人寿保险有限公司</h3>
                                <p>8009886688</p>
                                <a data-icon="ui-icon-plus" onClick="addContactToPhoneBook('中德安联人寿保险有限公司','8009886688');">
                                    添加至联系人
                                </a>
                            </a>
                        </li>
                        <li>
                            <a onClick="callTel('4007795581');">
                                <h3>嘉禾人寿</h3>
                                <p>4007795581</p>
                                <a data-icon="ui-icon-plus" onClick="addContactToPhoneBook('嘉禾人寿','4007795581');">
                                    添加至联系人
                                </a>
                            </a>
                        </li>
                        <li>
                            <a onClick="callTel('95545');">
                                <h3>中英人寿保险有限公司</h3>
                                <p>95545</p>
                                <a data-icon="ui-icon-plus" onClick="addContactToPhoneBook('中英人寿保险有限公司','95545');">
                                    添加至联系人
                                </a>
                            </a>
                        </li>
                        <li>
                            <a onClick="callTel('95576');">
                                <h3>长城人寿保险股份有限公司</h3>
                                <p>95576</p>
                                <a data-icon="ui-icon-plus" onClick="addContactToPhoneBook('长城人寿保险股份有限公司','95576');">
                                    添加至联系人
                                </a>
                            </a>
                        </li>
                        <li>
                            <a onClick="callTel('4008200081');">
                                <h3>安信农业保险股份有限公司</h3>
                                <p>4008200081</p>
                                <a data-icon="ui-icon-plus" onClick="addContactToPhoneBook('安信农业保险股份有限公司','4008200081');">
                                    添加至联系人
                                </a>
                            </a>
                        </li>
                        <li>
                            <a onClick="callTel('4008868199');">
                                <h3>安盟保险</h3>
                                <p>4008868199</p>
                                <a data-icon="ui-icon-plus" onClick="addContactToPhoneBook('安盟保险','4008868199');">
                                    添加至联系人
                                </a>
                            </a>
                        </li>
                        <li>
                            <a onClick="callTel('4008161688');">
                                <h3>中荷人寿保险</h3>
                                <p>4008161688</p>
                                <a data-icon="ui-icon-plus" onClick="addContactToPhoneBook('中荷人寿保险','4008161688');">
                                    添加至联系人
                                </a>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>


        <div class="LM-tab" id="lmt12" style="margin-top:62px">
        <div id="AutoPhonelist" class="LM-wrapper">
        <div id="AutoScroller" class="LM-scroller" >
        <ul data-role="listview" data-inset="true" style="margin-left: 10px;margin-right: 10px;margin-top: 10px" >
        <li data-role="list-divider">
            A
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(0);">
                <h3>奥迪</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(1);">
                <h3>阿斯顿马丁</h3>
            </a>
        </li>
        <!-- end of A -->
        <li data-role="list-divider">
            B
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(2);">
                <h3>宾利</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(3);">
                <h3>奔驰</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(0);">
                <h3>宝马</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(5);">
                <h3>保时捷</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(6);">
                <h3>本田</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(7);">
                <h3>别克</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(8);">
                <h3>标致</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(9);">
                <h3>比亚迪</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(10);">
                <h3>宝骏汽车</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(11);">
                <h3>奔腾</h3>
            </a>
        </li>
        <!-- end of B -->
        <li data-role="list-divider">
            C
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(12);">
                <h3>长安铃木</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(13);">
                <h3>昌河</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(14);">
                <h3>长城汽车</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(15);">
                <h3>长安乘用（商用）</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(16);">
                <h3>川汽野马</h3>
            </a>
        </li>
        <!-- end of C -->
        <li data-role="list-divider">
            D
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(17);">
                <h3>大众</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(18);">
                <h3>东风风行</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(19);">
                <h3>帝豪</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(20);">
                <h3>东南三菱</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(21);">
                <h3>道奇</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(22);">
                <h3>东风风神</h3>
            </a>
        </li>
        <!-- end of D -->
        <li data-role="list-divider">
            F
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(23);">
                <h3>法拉利</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(24);">
                <h3>福特</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(25);">
                <h3>菲亚特</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(26);">
                <h3>丰田</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(27);">
                <h3>福迪汽车</h3>
            </a>
        </li>
        <!-- end of F -->
        <li data-role="list-divider">
            G
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(28);">
                <h3>广汽乘用车</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(29);">
                <h3>广汽长丰</h3>
            </a>
        </li>
        <!-- end of G -->
        <li data-role="list-divider">
            H
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(30);">
                <h3>华晨金杯</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(31);">
                <h3>华晨中华</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(32);">
                <h3>红旗</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(33);">
                <h3>海马</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(34);">
                <h3>哈飞汽车</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(35);">
                <h3>华泰汽车</h3>
            </a>
        </li>
        <!-- end of H -->
        <li data-role="list-divider">
            J
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(36);">
                <h3>捷豹</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(37);">
                <h3>Jeep</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(38);">
                <h3>江淮汽车</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(39);">
                <h3>江铃汽车</h3>
            </a>
        </li>
        <!-- end of J -->
        <li data-role="list-divider">
            K
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(40);">
                <h3>凯迪拉克</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(41);">
                <h3>克莱斯勒</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(42);">
                <h3>开瑞</h3>
            </a>
        </li>
        <!-- end of K -->
        <li data-role="list-divider">
            L
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(43);">
                <h3>劳斯莱斯</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(44);">
                <h3>兰博基尼</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(45);">
                <h3>路虎</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(46);">
                <h3>雷诺</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(47);">
                <h3>雷克萨斯</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(48);">
                <h3>莲花汽车</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(49);">
                <h3>力帆汽车</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(50);">
                <h3>陆风汽车</h3>
            </a>
        </li>
        <!-- end of L -->
        <li data-role="list-divider">
            M
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(51);">
                <h3>玛莎拉蒂</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(52);">
                <h3>MINI</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(53);">
                <h3>马自达</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(54);">
                <h3>MG</h3>
            </a>
        </li>
        <!-- end of M -->
        <li data-role="list-divider">
            N
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(55);">
                <h3>纳智捷</h3>
            </a>
        </li>
        <!-- end of N -->
        <li data-role="list-divider">
            O
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(56);">
                <h3>讴歌</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(57);">
                <h3>欧宝</h3>
            </a>
        </li>
        <!-- end of O -->
        <li data-role="list-divider">
            Q
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(58);">
                <h3>起亚</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(59);">
                <h3>全球鹰</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(60);">
                <h3>奇瑞</h3>
            </a>
        </li>
        <!-- end of Q -->
        <li data-role="list-divider">
            R
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(61);">
                <h3>日产</h3>
            </a>
        </li>
        <!-- end of R -->
        <li data-role="list-divider">
            S
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(62);">
                <h3>上汽荣威</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(63);">
                <h3>斯巴鲁</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(64);">
                <h3>三菱</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(65);">
                <h3>斯柯达</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(66);">
                <h3>双环</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(67);">
                <h3>上汽通用五菱雪佛兰</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(68);">
                <h3>上汽通用五菱</h3>
            </a>
        </li>
        <!-- end of S -->
        <li data-role="list-divider">
            T
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(69);">
                <h3>天津一汽,夏利</h3>
            </a>
        </li>
        <!-- end of T -->
        <li data-role="list-divider">
            W
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(70);">
                <h3>沃尔沃</h3>
            </a>
        </li>
        <!-- end of W -->
        <li data-role="list-divider">
            X
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(71);">
                <h3>现代</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(72);">
                <h3>雪佛兰</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(73);">
                <h3>雪铁龙</h3>
            </a>
        </li>
        <!-- end of X -->
        <li data-role="list-divider">
            Y
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(74);">
                <h3>英菲尼迪</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(75);">
                <h3>一汽欧朗</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(76);">
                <h3>英伦汽车</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(77);">
                <h3>一汽吉林</h3>
            </a>
        </li>
        <!-- end of Y -->
        <li data-role="list-divider">
            Z
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(78);">
                <h3>中兴汽车</h3>
            </a>
        </li>
        <li>
            <a onClick="commonJumpToPhoneBrand(79);">
                <h3>众泰汽车</h3>
            </a>
        </li>
        <!-- end of Z -->
        </ul>
        </div>
        </div>
        </div>

        <div class="LM-tab" id="lmt14" style="margin-top:62px">
            <div id="BrandPhonelist" class="LM-wrapper">
                <div id="BrandPhoneAutoScroller" class="LM-scroller" >
                    <ul data-role="listview" id="list_brandphone" data-inset="true" style="margin-left: 10px;margin-right: 10px;margin-top: 10px" >
                    </ul>
                </div>
            </div>
        </div>
	</div>
	


	<div class="LM-card" id="lmc3">
		<!-- start of lmt6 -->
		<div class="LM-tab cur" id="lmt6"  style="margin-top:42px">
			<ul data-role="listview" data-theme="c" data-dividertheme="d">
				<li>
		          <table align="center">
						  <tr>
							<td>
								<input type="search" name="password" id="search" value="" />
							</td>
							<td>
							   <a data-role="button" onClick="searchJumpToShopList();">go</a>
							</td>
						  </tr>
				  </table>
		        </li>
			</ul>
			<!-- <h2>服务项目：</h2>
			<ul data-role="listview" data-theme="c" data-dividertheme="d">
			<li>
			<a onClick="isFromHot=true;">	
				<font size=3>
				123478473
				</font>
			</a>
			</li>
			<li>
			<a onClick="isFromHot=true;">
			<font size=3>
			12377876
			</font>
			</a>
			</li>
			</ul> -->
		</div><!-- end of lmt6-->
		
		<!-- -------------------- -->
		<div class="LM-tab" id="lmt7">
			<div id="searchwrapper" class="LM-wrapper">
				<div id="commonscroller" class="LM-scroller">
						<div data-role="controlgroup" data-type="horizontal" style="width:100%;" align="center">
						<a href="index.html" data-role="button" style="width:40%" data-icon="send-msg">1234</a>
						<a href="index.html" data-role="button" style="width:40%">No</a>
						</div>
				   		<ul data-role="listview" style=" width:100%;" data-theme="c">
							<li>
								<a onClick="searchJumpToShopDetail();">
								<img src="img/shop.jpg" />
								<h3>Broken Bells</h3>
								<p>
									Broken Bells
									<span class="ui-li-staic" style="float:right; margin-right:20px">
										1234
									</span>
								</p>
								</a>
							</li>
						</ul>
					</div><!-- end of scroller -->
				</div><!-- end of wrapper -->
			</div> <!-- end of lmt7 -->
		
		<div class="LM-tab" id="lmt8">
			<div id="searchdetail" class="LM-wrapper">
				<div id="shopdetailscroller" class="LM-scroller">
					<table width="100%">
							<tr>
								<td >
									<a>
										<img src="img/shop.jpg" />					
									</a>				
								</td>
								<td valign="top">
									<table width="100%">
										<tr>
											<td width="100%" valign="top" style="margin-top:-50px">
												<h2>123
												</h2>						
											</td>
										</tr>
										<tr width="100%">
											<td width="40%" nowrap="nowrap">
											<span id="shopwash">
												洗车：15元/次</span></td>
											<td  width="60%" nowrap="nowrap" align="right">
											<span id="shopdistance">
											4581234米
											</span>							
											</td>
										</tr>
								  	</table>
								</td>
							</tr>
					  </table>
					  <!-- 水平分割线-->
					  <hr />
					  <ul data-role="listview" data-inset="true">
							<li style="height:50px">
							<a  onclick="callTel();">
									<img src="img/icon-phone.png" width="42" height="42" align="absmiddle"/>
									<span>
									1234555
									</span>
							</a>
							<li style="height:50px">
							<a  onclick="driveToDes();">
									<img src="img/icon-phone.png" width="42" height="42" align="absmiddle"/>
									<span>
									地址：fjkdsjfksjdfk
									</span>
							</a>
							</li>
						</ul>	<!--end of ul -->
					
					<!--优惠信息开始 -->
					<h2>优惠信息：</h2>
					<ul data-role="listview" data-inset="true">
							<li>
								shops12847323479fjsdfjslkdjfklsjfkjslkfjlskjfkl jslkjflksj lkjksflkslkdj
							</li>
							<li>school</li>
							<li>hello</li>
					</ul>
					<!--end of 优惠信息-->
					<!--服务项目开始 -->
					<h2>服务项目：</h2>
					<ul data-role="listview" data-inset="true">
							<li>
								WASHCAR:FJSDFKJSDKF
							</li>
							<li>school</li>
							<li>hello</li>
					</ul>
				</div><!-- end of scroller -->
			</div><!-- end of wrapper -->
		</div><!-- end of lmt8 -->
		
		
	</div><!-- end of lmc3 -->
	
	<div class="LM-card" id="lmc5">
		<div  class="LM-tab cur" id="lmt9" style="margin-top:62px">
            <ul data-role="listview" data-inset="true">
                <li>
                    <table>
                        <tr>
                            <td width="80%">
                                推送通知
                            </td>
                            <td width="20%">
                                <select name="switch-a" id="switch-a" data-role="slider">
                                    <option value="off">Off</option>
                                    <option value="on">On</option>
                                </select>
                            </td>
                        </tr>
                    </table>
                </li>
            </ul>
            <h2></h2>
            <ul data-role="listview" data-inset="true">
                <li>
                    <a onClick="helpJumpToVal();" data-role="none">
                        评价我们
                    </a>
                </li>
                <li>
                    <a onClick="helpJumpToBackUp();">
                        建议我们
                    </a>
                </li>
                <li>
                    <a onClick="helpJumpToAbout();">
                        关于
                    </a>
                </li>
            </ul>
		</div><!--end of lmt9-->

        <div  class="LM-tab" id="lmt13" style="margin-top:62px">
            <!--
            <div class="ui-grid-b" style="margin:0 auto; MARGIN-RIGHT: auto; MARGIN-LEFT: auto; ">
                <div class="ui-block-a" style="float:left;display:inline;"><div class="ui-bar ui-bar-e" style="height:120px">B</div></div>
                <div class="ui-block-a" style="float:left;display:inline;"><div class="ui-bar ui-bar-e" style="height:120px">B</div></div>
                <div class="ui-block-a" style="float:left;display:inline;"><div class="ui-bar ui-bar-e" style="height:120px">B</div></div>
            </div>
            -->
            <table align="center">
                <td>
                    <tr>
                        <div data-role="fieldcontain">
                            <textarea cols="40" rows="8" name="textarea" id="textarea"></textarea>
                        </div>
                    </tr>
                    <tr>
                        <td style="width: 20%">
                            您的称呼:
                        </td>
                        <td style="width: 80%">
                            <input name="password" id="nickname"/>
                        </td>

                    </tr>
                    <tr>
                        <td style="width: 20%">
                            您的联系方式:
                        </td>
                        <td style="width:80%">
                            <input name="password" id="contract"/>
                        </td>
                    </tr>
                </td>
            </table>
        </div>

	</div>
    <style>
        .nav-glyphish-example .ui-btn .ui-btn-inner { padding-top: 40px !important; }
        .nav-glyphish-example .ui-btn .ui-icon { width: 30px!important; height: 30px!important; margin-left: -15px !important; box-shadow: none!important; -moz-box-shadow: none!important; -webkit-box-shadow: none!important; -webkit-border-radius: none !important; border-radius: none !important; }
    </style>
<div id="footer" class="LM-footer" data-theme="a" data-role="footer" class="nav-glyphish-example">
    <div data-role="navbar" data-theme="c" class="nav-glyphish-example">
		<ul >
			<li><a href="#"  onClick="lmcard('lmc1');curTabCard=0;changeTab();" id="btn_nearby" style="background: url(img/btn_nearbysele.png); background-size: 100% 100% "></a></li>
			<li><a href="#"  onClick="lmcard('lmc3');curTabCard=2;changeTab();" id="btn_search" style="background: url(img/btn_search.png); background-size: 100% 100% " ></a></li>
			<li><a href="#"  onClick="lmcard('lmc2');curTabCard=1;changeTab();" id="btn_common" style="background: url(img/btn_common.png); background-size: 100% 100% " ></a></li>
			<li><a href="#"  onClick="lmcard('lmc5');curTabCard=4;changeTab();" id="btn_setting" style="background: url(img/btn_setting.png); background-size: 100% 100% " ></a></li>
		</ul>
	</div><!-- /navbar -->
</div>

<script id="thelisttpl" type="text/html">
    <li>
    <div class="weibocontent">${title}</div>

    </li>
</script>

</body>
</html>
